package com.maimao.model.user.input;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2021/3/22 3:27 下午
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysUserByResourceInput implements Serializable {

    private static final long serialVersionUID = 518349574730054414L;

    /**
     * 资源权限id列表
     */
    private List<Integer> resourcesIds;

    /**
     * 所需权限所有者数量 -1为无限制
     */
    private Integer limit;

    public List<Integer> getResourcesIds() {
        return resourcesIds;
    }

    public void setResourcesIds(List<Integer> resourcesIds) {
        this.resourcesIds = resourcesIds;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    @Override
    public String toString() {
        return "SysUserByResourceInput{" +
                "resourcesIds=" + resourcesIds +
                ", limit=" + limit +
                '}';
    }
}
